<!DOCTYPE html>
            <html>
                <head>                    
                    <meta http-equiv="X-UA-Compatible" content="IE=edge">
                    <meta http-equiv="content-type" content="text/html; charset=utf-8">
                    <title>常见错误.md</title>
                    <style type="text/css">
                    /*
Copyright (c) 2017 Chris Patuzzo
https://twitter.com/chrispatuzzo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

body {
  font-family: Helvetica, arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: white;
  padding: 30px;
  color: #333;
}

body &gt; *:first-child {
  margin-top: 0 !important;
}

body &gt; *:last-child {
  margin-bottom: 0 !important;
}

a {
  color: #4183C4;
  text-decoration: none;
}

a.absent {
  color: #cc0000;
}

a.anchor {
  display: block;
  padding-left: 30px;
  margin-left: -30px;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 20px 0 10px;
  padding: 0;
  font-weight: bold;
  -webkit-font-smoothing: antialiased;
  cursor: text;
  position: relative;
}

h2:first-child, h1:first-child, h1:first-child + h2, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0;
  padding-top: 0;
}

h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor, h5:hover a.anchor, h6:hover a.anchor {
  text-decoration: none;
}

h1 tt, h1 code {
  font-size: inherit;
}

h2 tt, h2 code {
  font-size: inherit;
}

h3 tt, h3 code {
  font-size: inherit;
}

h4 tt, h4 code {
  font-size: inherit;
}

h5 tt, h5 code {
  font-size: inherit;
}

h6 tt, h6 code {
  font-size: inherit;
}

h1 {
  font-size: 28px;
  color: black;
}

h2 {
  font-size: 24px;
  border-bottom: 1px solid #cccccc;
  color: black;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

h5 {
  font-size: 14px;
}

h6 {
  color: #777777;
  font-size: 14px;
}

p, blockquote, ul, ol, dl, li, table, pre {
  margin: 15px 0;
}

/*
hr {
  border: 0 none;
  color: #cccccc;
  height: 4px;
  padding: 0;
}
*/
body &gt; h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

body &gt; h1:first-child {
  margin-top: 0;
  padding-top: 0;
}

body &gt; h1:first-child + h2 {
  margin-top: 0;
  padding-top: 0;
}

body &gt; h3:first-child, body &gt; h4:first-child, body &gt; h5:first-child, body &gt; h6:first-child {
  margin-top: 0;
  padding-top: 0;
}

a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
  margin-top: 0;
  padding-top: 0;
}

h1 p, h2 p, h3 p, h4 p, h5 p, h6 p {
  margin-top: 0;
}

li p.first {
  display: inline-block;
}

ul, ol {
  padding-left: 30px;
}

ul :first-child, ol :first-child {
  margin-top: 0;
}

ul :last-child, ol :last-child {
  margin-bottom: 0;
}

dl {
  padding: 0;
}

dl dt {
  font-size: 14px;
  font-weight: bold;
  font-style: italic;
  padding: 0;
  margin: 15px 0 5px;
}

dl dt:first-child {
  padding: 0;
}

dl dt &gt; :first-child {
  margin-top: 0;
}

dl dt &gt; :last-child {
  margin-bottom: 0;
}

dl dd {
  margin: 0 0 15px;
  padding: 0 15px;
}

dl dd &gt; :first-child {
  margin-top: 0;
}

dl dd &gt; :last-child {
  margin-bottom: 0;
}

blockquote {
  border-left: 4px solid #dddddd;
  padding: 0 15px;
  color: #777777;
}

blockquote &gt; :first-child {
  margin-top: 0;
}

blockquote &gt; :last-child {
  margin-bottom: 0;
}

table {
  padding: 0;
}
table tr {
  border-top: 1px solid #cccccc;
  background-color: white;
  margin: 0;
  padding: 0;
}

table tr:nth-child(2n) {
  background-color: #f8f8f8;
}

table tr th {
  font-weight: bold;
  border: 1px solid #cccccc;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}

table tr td {
  border: 1px solid #cccccc;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}

table tr th :first-child, table tr td :first-child {
  margin-top: 0;
}

table tr th :last-child, table tr td :last-child {
  margin-bottom: 0;
}

img {
  max-width: 100%;
}

span.frame {
  display: block;
  overflow: hidden;
}

span.frame &gt; span {
  border: 1px solid #dddddd;
  display: block;
  float: left;
  overflow: hidden;
  margin: 13px 0 0;
  padding: 7px;
  width: auto;
}

span.frame span img {
  display: block;
  float: left;
}

span.frame span span {
  clear: both;
  color: #333333;
  display: block;
  padding: 5px 0 0;
}

span.align-center {
  display: block;
  overflow: hidden;
  clear: both;
}

span.align-center &gt; span {
  display: block;
  overflow: hidden;
  margin: 13px auto 0;
  text-align: center;
}

span.align-center span img {
  margin: 0 auto;
  text-align: center;
}

span.align-right {
  display: block;
  overflow: hidden;
  clear: both;
}

span.align-right &gt; span {
  display: block;
  overflow: hidden;
  margin: 13px 0 0;
  text-align: right;
}

span.align-right span img {
  margin: 0;
  text-align: right;
}

span.float-left {
  display: block;
  margin-right: 13px;
  overflow: hidden;
  float: left;
}

span.float-left span {
  margin: 13px 0 0;
}

span.float-right {
  display: block;
  margin-left: 13px;
  overflow: hidden;
  float: right;
}

span.float-right &gt; span {
  display: block;
  overflow: hidden;
  margin: 13px auto 0;
  text-align: right;
}

code, tt {
  margin: 0 2px;
  padding: 0 5px;
  white-space: nowrap;
  border: 1px solid #eaeaea;
  background-color: #f8f8f8;
  border-radius: 3px;
}

pre code {
  margin: 0;
  padding: 0;
  white-space: pre;
  border: none;
  background: transparent;
}

.highlight pre {
  background-color: #f8f8f8;
  border: 1px solid #cccccc;
  font-size: 13px;
  line-height: 19px;
  overflow: auto;
  padding: 6px 10px;
  border-radius: 3px;
}

pre {
  background-color: #f8f8f8;
  border: 1px solid #cccccc;
  font-size: 13px;
  line-height: 19px;
  overflow: auto;
  padding: 6px 10px;
  border-radius: 3px;
}

pre code, pre tt {
  background-color: transparent;
  border: none;
}

/* Syntax Highlighting */

.plainText {
 background-color: #FFFFFF;
 color: #000000;
}
.htmlServerSideScript {
 background-color: #FFFF00;
}
.htmlComment {
 color: #008000;
}
.htmlTagDelimiter {
 color: #0000FF;
}
.htmlElementName {
 color: #A31515;
}
.htmlAttributeName {
 color: #FF0000;
}
.htmlAttributeValue {
 color: #0000FF;
}
.htmlOperator {
 color: #0000FF;
}
.comment {
 color: #008000;
}
.xmlDocTag {
 color: #808080;
}
.xmlDocComment {
 color: #008000;
}
.string {
 color: #A31515;
}
.stringCSharpVerbatim {
 color: #A31515;
}
.keyword {
 color: #0000FF;
}
.preprocessorKeyword {
 color: #0000FF;
}
.htmlEntity {
 color: #FF0000;
}
.xmlAttribute {
 color: #FF0000;
}
.xmlAttributeQuotes {
 color: #000000;
}
.xmlAttributeValue {
 color: #0000FF;
}
.xmlCDataSection {
 color: #808080;
}
.xmlComment {
 color: #008000;
}
.xmlDelimiter {
 color: #0000FF;
}
.xmlName {
 color: #A31515;
}
.className {
 color: #48D1CC;
}
.cssSelector {
 color: #A31515;
}
.cssPropertyName {
 color: #FF0000;
}
.cssPropertyValue {
 color: #0000FF;
}
.sqlSystemFunction {
 color: #FF00FF;
}
.powershellAttribute {
 color: #B0E0E6;
}
.powershellOperator {
 color: #808080;
}
.powershellType {
 color: #008080;
}
.powershellVariable {
 color: #FF4500;
}
.type {
 color: #008080;
}
.typeVariable {
 color: #008080;
 font-style: italic;
}
.namespace {
 color: #000080;
}
.constructor {
 color: #800080;
}
.predefined {
 color: #000080;
}
.pseudoKeyword {
 color: #000080;
}
.stringEscape {
 color: #808080;
}
.controlKeyword {
 color: #0000FF;
}
.number {
}
.operator {
}
.delimiter {
}
.markdownHeader {
 font-weight: bold;
}
.markdownCode {
 color: #008080;
}
.markdownListItem {
 font-weight: bold;
}
.italic {
 font-style: italic;
}
.bold {
 font-weight: bold;
}

                    </style>
                </head>
                <body style="">
                <pre><code id="0">WCCOAmod     (10), 2024.04.19 16:21:02.830, PARAM,WARNING,    54, Unexpected state, ModModbusMaster, writeData, No host/unit address defined for PLC number: 39
</code></pre>
<h4 id="4">找到Modbus驱动配置，找到39号驱动，配置IP地址和Unit单元号</h4>
<pre><code id="6">WCCOAmod     (10), 2024.04.19 16:21:22.904, SYS,  WARNING,    54, Unexpected state, ModModbusMaster, processResponse, 192.168.42.186: Wrong response to read registers request
</code></pre>
<h4 id="9">找到Modbus 设备Ip地址192.168.42.186的配置，对读取寄存器请求的错误响应，检查此类设备配置的地址有误？</h4>
<pre><code id="10">WCCOAmod     (10), 2024.04.19 16:21:22.638, SYS,  SEVERE,     54, Unexpected state, ModMasterConnection, sendRequest, Timeout expires for connection to server 192.168.43.112 on port 502
</code></pre>
<h4 id="13">192.168.43.112的modbus设备不在线。</h4>
<pre><code id="14">WCCOAs7      (7), 2024.04.19 16:21:29.643, SYS,  SEVERE,     54, Unexpected state, S7PollGroupBlock, processData, Error result 0xfff50008 in request for address GMS_CPU_004.DB155.DBD20F; startbyte 0x9b0014, pollLen 8 type D
</code></pre>
<h4 id="17">西门子PLC GMS_CPU_004, 地址DB155.DBD20F 无法读取，需要在西门子PLC的DB155 多下载几个（10个）占位空字节，防止一个长数据帧溢出。</h4>
<pre><code id="18">WCCOAs7      (7), 2024.04.19 16:21:30.408, SYS,  SEVERE,      7/s7, No active connection for GMS_CPU_003
WCCOAs7      (7), 2024.04.19 16:21:30.440, SYS,  SEVERE,     13/s7, Common AGLink error (0xfff5001c) for GMS_CPU_003(1/1), 0, 0
</code></pre>
<h4 id="22">西门子设备GMS_CPU_003无法连接</h4>
<pre><code id="23">WCCOAmod     (10), 2024.04.19 16:21:30.705, SYS,  WARNING,    54, Unexpected state, ModModbusMaster, processResponse, 192.168.40.183: Exception code received: EC=2 FC=3 for UA: 1 Ref: 1
</code></pre>
<p id="26">modbus设备的心跳地址：4x00001不存在，无法实现心跳。<br />
EC=2  Error Code=2，读取错误<br />
FC=3  Function Code=3， 3功能码，读取保持寄存器4区的数据<br />
UA:1 Unit Address =1 ， 单元地址为1<br />
Ref：1   基准地址1， 意思是4x00001的保持寄存器地址。<br />
可以考虑在config文件添加配置禁用这个心跳或改心跳地址：</p>
<pre><code id="32">[mod] 
aliveInterval = 0 # 禁用心跳
aliveTimeoutMsg = 3 1 # 默认是3功能码，读取4x0001地址。改成其他心跳地址
</code></pre>
<pre><code id="37">WCCOAmod     (10), 2024.04.19 16:23:48.371, PARAM,WARNING,    54, Unexpected state, ModModbusMaster, decodeFrame, Receiving Modbus frame without request from server 192.168.40.185
</code></pre>
<h4 id="40">发送的modbus tcp的数据帧与应答的tcp数据帧不匹配，例如发送的帧ID为223344， 应答的是223345，错帧了容易出现这种错误，一般是设备的bug。</h4>
<p id="41">可以考虑在config文件添加配置：</p>
<pre><code id="42">[mod]
maxPendingRequests = 8 # 默认是1， 容易出现错帧现象。改成并行8个tcp等候，适应错帧的情况。
</code></pre>
<pre><code id="46">WCCOActrl    (1), 2024.04.19 16:23:55.866, SYS,  SEVERE,    229, The Manager MAN: (SYS: 1 Data -num 0 CONN: 1) is already running at host localhost.
</code></pre>
<h4 id="49">启动一个新的control manager的时候，未用“-num 2” 这种格式指定一个number号，导致从1开始分配，1是系统用的，会产生这个日志。</h4>
<pre><code id="50">WCCOActrl    (3), 2024.04.19 16:24:34.402, CTRL, WARNING,    71, DP does not exist, FMCS_WEBClient.ctl    Line: 328, dpGet, System1:GMS_GDS01_DET_O3.Online
</code></pre>
<h4 id="53">在control manager -num 3的脚本里面， 第328行，代码错误，DP不存在，System1:GMS_GDS01_DET_O3.Online</h4>
<pre><code id="54">
WCCILdata    (0), 2024.04.25 18:48:36.260, IMPL, SEVERE,     54, Unexpected state, DataManDpIntern, refreshDiskStatus, Cannot stat F:\WinCC_OA_Proj\FMCS_MEP_DEMO\db\wincc_oa\
</code></pre>
<h4 id="58">默认的备份路径设置错误。可能会在这些内部点配置携带了以往项目存储的路径信息未能在新系统自动更新，需要手动进行处理：</h4>
<p id="59">_DataManager.DiskSpaceCheck.DiskStatus<br />
_DataManager.Backup.InputFile.Device<br />
_DataManager.Backup.OutputFile.FileError<br />
_ValueArchiveMedia.source<br />
_BackupMedium.Device<br />
_BackupMedium_2.Device<br />
_AlertArchivControl.Media.Device<br />
_MediaConfig.Device<br />
_ArchivDisk_2.Device<br />
<em>ValueArchive</em>*.action.media.backupDevice</p>

                </body>
            </html>
            